﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JAWWS
{
    class Room
    {
        public float xmin, xmax, zmin, zmax;

        public int roomidx;

        public Room()
        {
            xmin = 0.0f;
            xmax = 0.0f;
            zmin = 0.0f;
            zmax = 0.0f;
        }
        public Room(float x1, float x2, float z1, float z2)
        {
            xmin = x1;
            xmax = x2;
            zmin = z1;
            zmax = z2;
        }
        public bool check_collision(float xpos, float zpos)
        {
            if ((xpos > xmin  && xpos < xmax) && (zpos > zmin && zpos < zmax))
                return true;
            else
                return false;
        }
    }
}
